package com.epam.qanda.db.service;

import com.epam.qanda.db.dao.impl.UserQuestionLikeDao;

public class UserQuestionLikeService {

	public <T> void create(T element) {
		new UserQuestionLikeDao().create(element);
	}

	public <T> T read(Integer id) {
		return new UserQuestionLikeDao().read(id);
	}

	public void delete(Integer id) {
		new UserQuestionLikeDao().delete(id);
	}

	public <T> void update(T element) {
		new UserQuestionLikeDao().update(element);
	}
	
	public <T> T getUserQuestion(Integer userId, Integer questionId){
		return new UserQuestionLikeDao().getUserQuestion(userId,questionId);
	}

	public <T> T getLikeUserQuestion(Integer id) {
		return new  UserQuestionLikeDao().getLikeUserQuestion(id);
	}

}
